<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="./lib/vue.js"></script>
    <script>
        const app=Vue.createApp({
            // 插值语法：{{ title }}
            template:`<h1>{{ title }}</h1><h2>{{ message }}</h2>`,
            data:function(){ // data是一个函数并且返回一个对象
                return{
                    title:'Hello Vue!!!',
                    message:'你好，Vue3'
                }
            }
        })

        app.mount("#app")
    </script>
</body>
</html>